#include <jni.h>
#include <string>

extern "C"
JNIEXPORT jobject JNICALL
Java_com_lyn_serialport_SerialPort_open(JNIEnv *env, jobject thiz, jstring path,
                                               jint baud_rate, jint flags);

extern "C"
JNIEXPORT jobject JNICALL
Java_com_lyn_serialport_SerialPort_getFileDescriptor(JNIEnv *env, jobject thiz);

extern "C"
JNIEXPORT jint JNICALL
Java_com_lyn_serialport_SerialPort_close(JNIEnv *env, jobject thiz);